<?php
/**
*基础模型类型 model.class.php
*/
class model{
	protected $db;//保存数据库对象
	public function __construct(){
		$this->initDB();//初始化数据库
	}
	private function initDB(){
		//配置数据库连接信息
		$dbConfig=array('user'=>'root','pass'=>'jiayang520','dbname'=>'hcit_msg');
		//实例化数据库操作类
		$this->db = MySQLPDO::getInstance($GLOBALS['config']['db']);
    }
}
?>